package com.test;

import java.util.List;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.entity.SalChance;
import com.service.SalChanceService;
import junit.framework.TestCase;

public class serSaltext {
	@Test
	public void test() {
		ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
		SalChanceService salc=(SalChanceService)ctx.getBean("salService");
		List<SalChance> sal= salc.selectAllSalChance();
		   System.out.println("总数是:"+sal.size());
	}
}
